package cn.gson.boot.model.mapper;

import cn.gson.boot.model.pojos.*;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PurchaseMapper {

    //采购单分页查询
    List<Purchase> selectPurchases(@Param("search") String search,
                                   @Param("type") String type);

    //查询所有的供应商
    List<Supplier> selectSupplier();

    //采购模糊查询供应商
    List<Supplier> SelectBySupplierName(String supplierName);

    //根据供应商名称查询供应商联系人
    List<SupplierContact> ContactBySupplierName(String supplierName);

    //查询单号
    String PurchaseOrder();

    //查询采购单状态
    String PurchaseStatus(Integer purchaseId);
}
